<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page import="java.util.*"%>
<%@page import="com.dss.service.ExpertService"%>
<%@page import="com.dss.po.ExpertClass"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
    request.setCharacterEncoding("UTF-8");
	String expertClassId = request.getParameter("expertClassId");
    if(expertClassId == null) expertClassId = "";
    ExpertClass expertClass = ExpertService.loadExpertClassById(request, response, out);
    String expertClassTitle = "";
    if(expertClass != null){
    	expertClassTitle = expertClass.getTitle();
    }

%>
<html>
<head>
	<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
	<script type="text/javascript">
		function doSubmit(){
		 	if("" == "<%=expertClassId%>") {
		 		form1.actionType.value = "add";
			}else {
		 		form1.actionType.value = "modify";
			}
			form1.submit();
		}	
		
	    function showError(error){
		   alert(error);
	    }

		function showInfo(info){
		   window.returnValue = "ok";
		   window.close();
		}
	</script>
</head>
<body rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0">
	<form name="form1" action="expert_class_action.jsp" method="post" target="actionFrame">
		<input type="hidden" name="actionType">
		<input type="hidden" name="expertClassId" value="<%=expertClassId %>">
		<table class="dialogTable" cellpadding="0" cellspacing="0"> 
			<!-- 表头-->
			<tr class="dialogTableHeader">
				<td>专家分类</td>
			</tr>
					<!-- 表数据-->
			<tr class="dialogTableContent">
				<td>
					<!-- 数据项 -->
					<table class="dataTable">
						<col width="30%">
						<col width="70%">
						<tr>
							<td class="field">
								分类名称
							</td>
							<td>
								<input  value="<%=expertClassTitle %>" name="className" style="width: 100%" type="text">
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td colspan="2" class="tableBtn">
					<span onclick="doSubmit();">确定</span>
					<span onclick="window.close();">取消</span>
				</td>
			</tr>
		</table>
	</form>
</body>
<iframe src="#" name="actionFrame" style="display: none;"></iframe>
</html>
